home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Collision / collision course.jar / Collision.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-06-11  |  2.3 KB  |  63 lines

  1. import javax.microedition.lcdui.Display;
  2. import javax.microedition.lcdui.Displayable;
  3. import javax.microedition.midlet.MIDlet;
  4.  
  5. public class Collision extends MIDlet {
  6.    // $FF: renamed from: a d
  7.    private Collision$d field_0 = new Collision$d(this);
  8.    // $FF: renamed from: int java.lang.Thread
  9.    Thread field_1;
  10.    // $FF: renamed from: try c
  11.    Collision$c field_2;
  12.    // $FF: renamed from: for a
  13.    Collision$a field_3;
  14.    // $FF: renamed from: if b
  15.    Collision$b field_4;
  16.    // $FF: renamed from: new javax.microedition.lcdui.Display
  17.    Display field_5 = Display.getDisplay(this);
  18.    // $FF: renamed from: do java.lang.String
  19.    String field_6 = "The aim of Collision Course is simple - Drive as quickly as possible avoiding the obstacles and collecting the flags. \n\nPress UP to set off and change up a gear, press DOWN to change down a gear and press LEFT/RIGHT to control your position on the track. You can use either the direction thumb pad or the 4, 6, 2 and 8 number keys to play the game. \n\n30 points are gained for every flag collected and 20 points are awarded at the end of a stage for every second remaining on the clock.";
  20.  
  21.    public Collision() {
  22.       this.field_2 = new Collision$c(this, this.field_5, this.field_0, this.field_0);
  23.       this.field_3 = new Collision$a(this, this.field_5, this.field_0, this.field_6);
  24.       this.field_4 = new Collision$b(this, this.field_5, this.field_0);
  25.    }
  26.  
  27.    public void startApp() {
  28.       Display.getDisplay(this).setCurrent(this.field_0);
  29.       this.field_1 = new Thread(this.field_0);
  30.       this.field_1.start();
  31.    }
  32.  
  33.    public void pauseApp() {
  34.       ((MIDlet)this).notifyPaused();
  35.    }
  36.  
  37.    public void destroyApp(boolean var1) {
  38.       Display.getDisplay(this).setCurrent((Displayable)null);
  39.       ((MIDlet)this).notifyDestroyed();
  40.    }
  41.  
  42.    // $FF: renamed from: a () void
  43.    public void method_0() {
  44.       this.field_2.setString("");
  45.       this.field_2.a();
  46.    }
  47.  
  48.    // $FF: renamed from: do () void
  49.    public void method_1() {
  50.       this.field_3.a();
  51.    }
  52.  
  53.    // $FF: renamed from: if () void
  54.    public void method_2() {
  55.       this.field_4.a();
  56.    }
  57.  
  58.    // $FF: synthetic method
  59.    static Collision$d access$000(Collision var0) {
  60.       return var0.field_0;
  61.    }
  62. }
  63.